</div>
</div>
</div>
</div>
<script language="JavaScript">

    layui.use(['table', 'form', 'myTree', 'code', 'element'], function () {
        admin = layui.admin, table = layui.table, form = layui.form, myTree = layui.myTree;
        //树数据
        treedata = [{
            "checked": false,
            "children": [
                {
                    "id": "table", "spread": false, "title": "<span style=\"color:#67C23A\">原创插件</span>", "turn": false, "datas": {}, "children": [
                    {"id": "TestIndex", "title": "单图片上传", "turn": true},
                    {"id": "MoveUpload", "title": "多图片上传", "turn": true},
                    {"id": "DragSort", "title": "拖动排序", "turn": true},
                    {"id": "InputTag", "title": "输入标签", "turn": true},
                    {"id": "Number", "title": "数字加减", "turn": true},
                    {"id": "TreeSelect", "title": "选择树", "turn": true},
                    {"id": "Icon", "title": "图标选择", "turn": true},
                    {"id": "Color", "title": "颜色选择", "turn": true},
                ]
                },
                {
                    "id": "table", "spread": false, "title": "第三方插件", "turn": false, "datas": {}, "children": [
                    {"id": "XmSelect", "title": "下拉多选", "turn": true},
                ]
                }
            ], "datas": {}, "disabled": false, "id": "base", "spread": true, "title": "Layui插件示例"
        }];


        //树渲染
        myTree.render({
            init: TreeInit,
            elem: '#tree_1', data: treedata, showCheckbox: false, id: 'demoId1', isJump: true, jsOpen: true
            , click: function (obj) {
                var data = obj.data;
                if (data.turn) {
                    if (data.id == 'TestIndex') {
                        self.location.href = "TestIndex";
                    } else {
                        self.location.href = "TestCodeDataApi?codes=" + data.id;
                    }
                }
            }
        });
        layui.use('code', function () {
            layui.code();
        });
    });
</script>
#include("../../comm/Foot.html")